package com.wyh.utils.g3utils;

import java.sql.Timestamp;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/05/29/11:38
 **/
public class TimeUtils {
    public static Timestamp getAfterTime(Timestamp timestamp,long day){


        // 将 Timestamp 转换为毫秒数，加上周期后再设置回 Timestamp 对象
        long millis = timestamp.getTime();
        millis += day * 24 * 60 * 60 * 1000; // 将天转换为毫秒
        timestamp.setTime(millis);
        return timestamp;
    }
}
